<template>
  <view class="body">
    <!-- <uni-nav-bar
      title="恋爱话术"
      fixed="true"
      status-bar="true"
      background-color="#76A3FD"
    ></uni-nav-bar> -->
    <view class="message" @tap="user_smagreement"> 用户协议 </view>
    <view class="message" @tap="privacy_smagreement"> 隐私政策 </view>
    <view class="message" @tap="server">联系客服</view>
  </view>
</template>
<script>
import uniNavBar from "@/components/uni-nav-bar/uni-nav-bar.vue";
export default {
  components: { uniNavBar },
  methods: {
    server() {
      uni.showModal({
        title: "请联系客服进行处理",
        content: "微信号：snmi001",
        showCancel: false,
        success() {
          uni.setClipboardData({
            data: "snmi001",
            success(e) {
              uni.showToast({
                title: "复制成功",
                icon: "none",
              });
            },
          });
        },
      });
    },
    user_smagreement() {
      let src = "https://campaign.snmi.cn/treaty/user/";
      uni.navigateTo({
        url: `./webview/index?src=${src}`,
      });
    },
    privacy_smagreement() {
      let src = "https://campaign.snmi.cn/treaty/privacy/";
      uni.navigateTo({
        url: `./webview/index?src=${src}&subject="上海申米信息技术有限公司"`,
      });
    },
  },
};
</script>
<style lang="scss" scoped>
.body {
  width: 100%;
  height: 100%;
}
.message {
  width: 100%;
  height: 100upx;
  display: flex;
  align-items: center;
  justify-content: left;
  border-bottom: 2upx solid #ccc;
  font-size: 16px;
  padding-left: 20upx;
}
</style>